<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>溢出设置</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 2px solid red;
            /*overflow: hidden;!*超出部分隐藏*!*/
            /*overflow: visible;!*超出部分显示,默认*!*/
            overflow: scroll;/*超出部分滚动显示*/
        }
    </style>
</head>
<body>
    <div>
        <img src="../html_02/img/baoer.jpg" alt="">
    </div>
</body>
</html>